package com.demo.service;

import com.demo.service.fallback.FeignFallbackServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Program: SpringCloudAlibaba
 * @ClassName FeignServcie
 * @Author: liutao
 * @Description:
 * @Create: 2023-03-28 21:35
 * @Version 1.0
 **/

@FeignClient(value = "service-provider",fallback = FeignFallbackServiceImpl.class)
public interface FeignService {
    @GetMapping(value = "/test/{message}")
    String test(@PathVariable("message") String message);
}
